<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "stast_order".
 *
 * @property integer $id
 * @property string $day
 * @property integer $order_num
 * @property integer $order_pay_num
 * @property string $order_pay_money
 * @property integer $order_pay_user
 * @property string $create_time
 * @property string $update_time
 */
class StastOrder extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'stast_order';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['day', 'order_num', 'order_pay_num', 'order_pay_money', 'order_pay_user', 'create_time', 'update_time'], 'required'],
            [['day', 'create_time', 'update_time'], 'safe'],
            [['order_num', 'order_pay_num', 'order_pay_user'], 'integer'],
            [['order_pay_money'], 'number'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'day' => '日期',
            'order_num' => '订单数',
            'order_pay_num' => '已支付',
            'order_pay_money' => '支付金额',
            'order_pay_user' => '支付人数',
            'create_time' => '创建时间',
            'update_time' => '更新时间',
        ];
    }
}
